package com.wlz.file;

import org.apache.commons.codec.digest.DigestUtils;

import java.io.FileInputStream;

/**
 * @author wlz
 * @date 2022-10-31  10:36 上午
 */
public class FileMd5Test {

    public static void main(String[] args) throws Exception {
        long time = System.currentTimeMillis();
        String md5 = DigestUtils.md5Hex(new FileInputStream("/Users/wlz/Desktop/包/30G/30G.zip"));
        System.out.println(md5);
        System.out.println("time : " + (System.currentTimeMillis() - time));

    }


}
